﻿@model VOD.Models.Video
           
@using (Html.BeginForm("Step2", "VideoMgr", FormMethod.Post, new { encType = "multipart/form-data" })) {
    @Html.ValidationSummary(true)
        @Html.Hidden("CategoryID", 5)
        <table>
            <tr>
                <th>综艺名称：</th>
                <td colspan="3">
                    @Html.TextBoxFor(model => model.Name, new { maxlength = 50, @class = "ui-widget-content text ui-corner-all" })
                    @Html.ValidationMessageFor(model => model.Name)
                </td>
                <td rowspan="4">
                    <img id="VideoPic" src="@Url.Content("~/Content/Images/VideoImg/" + Model.VideoID + ".jpg")" onerror="javascript:this.src='@Url.Content("~/Content/images/nopic.jpg")'" width="136" height="171" />
                </td>
            </tr>
            <tr>
                <th>主持人：</th>
                <td>
                    @Html.TextBoxFor(model => model.Director, new { @class = "ui-widget-content text ui-corner-all" })
                    @Html.ValidationMessageFor(model => model.Director)
                </td>
                <th>年份：</th>
                <td>
                    @Html.TextBoxFor(model => model.ShowYear, new { maxlength = 4, @class = "ui-widget-content text ui-corner-all" })
                    @Html.ValidationMessageFor(model => model.ShowYear)
                </td>
            </tr>
            <tr>
                <th>语言：</th>
                <td>
                    @Html.DropDownList("LangID")
                </td>
                <th>地区</th>
                <td>
                    @Html.DropDownList("AreaID")
                </td>
            </tr>
            <tr>
                <th>图片</th>
                <td colspan="3">
                    <input id="PicUrl" type="file" name="PicUrl" />
                </td>
            </tr>
            <tr>
                <th>介绍</th>
                <td colspan="4">
                    @Html.TextAreaFor(model => model.Intro, new { maxlength = 2048, @class = "ui-widget-content text ui-corner-all" })
                    @Html.ValidationMessageFor(model => model.Intro)
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <input class="ui-state-default ui-corner-all" type="submit" value="保存" />
                    <input id="btnreset" class="ui-state-default ui-corner-all" type="reset" value="重置" />
                </td>
            </tr>
        </table>
}
